import{_ as M,o as p,c as E,r as m,d as h,a as l,b as d,w as t,e as i,f as e,n as $,h as O,g as R,i as z,j as V,u as C,k as D,l as U,m as r,p as g,q as a,t as _,s as T,K as N,v as B,x as P,y as q}from"./index-c80Lh_is.js";const H=""+new URL("product-logo-g6F5F6Qq.png",import.meta.url).href,Z={},G={class:"app-navigator"};function Y(c,o){return p(),E("li",G,[m(c.$slots,"default")])}const k=M(Z,[["render",Y]]),F=h({__name:"ControlPlaneNavigator",setup(c){return(o,u)=>{const s=l("RouterLink");return p(),d(k,{"data-testid":"control-planes-navigator"},{default:t(()=>[i(s,{class:$({"is-active":[o.$route.name].concat(o.$route.matched.map(n=>n.name)).some(n=>n==="home")}),to:{name:"home"}},{default:t(()=>[e(`
      Home
    `)]),_:1},8,["class"])]),_:1})}}}),j=h({name:"github-button",props:{href:String,ariaLabel:String,title:String,dataIcon:String,dataColorScheme:String,dataSize:String,dataShowCount:String,dataText:String},render:function(){const c={ref:"_"};for(const o in this.$props)c[O(o)]=this.$props[o];return R("span",[z(this.$slots,"default")?R("a",c,this.$slots.default()):R("a",c)])},mounted:function(){this.paint()},beforeUpdate:function(){this.reset()},updated:function(){this.paint()},beforeUnmount:function(){this.reset()},methods:{paint:function(){const c=this.$el.appendChild(document.createElement("span")),o=this;V(()=>import("./buttons.esm-TXzUqbYj.js"),__vite__mapDeps([]),import.meta.url).then(function(u){u.render(c.appendChild(o.$refs._),function(s){try{c.parentNode.replaceChild(s,c)}catch{}})})},reset:function(){this.$el.replaceChild(this.$refs._,this.$el.lastChild)}}}),A=c=>(P("data-v-1ccdf3b3"),c=c(),q(),c),Q={class:"application-shell"},J={role:"banner"},W={class:"horizontal-list"},X={class:"upgrade-check-wrapper"},x={class:"alert-content"},ee={class:"horizontal-list"},te={class:"app-status app-status--mobile"},ne={class:"app-status app-status--desktop"},oe=A(()=>r("span",{class:"visually-hidden"},"Help",-1)),ae=A(()=>r("span",{class:"visually-hidden"},"Diagnostics",-1)),se={class:"app-content-container"},ie={key:0,"aria-label":"Main",class:"app-sidebar"},re={class:"app-main-content"},ce={class:"app-notifications"},le=["innerHTML"],pe=h({__name:"ApplicationShell",setup(c){const o=C(),u=D(),{t:s}=U();return(n,y)=>{const b=l("RouterLink"),f=l("KButton"),v=l("KAlert"),S=l("DataSource"),I=l("KPop"),w=l("KDropdownItem"),K=l("KDropdown");return p(),E("div",Q,[r("header",J,[r("div",W,[m(n.$slots,"header",{},()=>[i(b,{to:{name:"home"}},{default:t(()=>[m(n.$slots,"home",{},void 0,!0)]),_:3}),e(),i(a(j),{class:"gh-star",href:"https://github.com/kumahq/kuma","aria-label":"Star kumahq/kuma on GitHub"},{default:t(()=>[e(`
            Star
          `)]),_:1}),e(),r("div",X,[i(S,{src:"/control-plane/version/latest"},{default:t(({data:L})=>[L&&a(o)("KUMA_VERSION")!==L.version?(p(),d(v,{key:0,"data-testid":"upgrade-check",appearance:"info",size:"small"},{alertMessage:t(()=>[r("div",x,[r("p",null,_(a(s)("common.product.name"))+` update available
                    `,1),e(),i(f,{appearance:"primary",to:a(s)("common.product.href.install")},{default:t(()=>[e(`
                      Update
                    `)]),_:1},8,["to"])])]),_:1})):g("",!0)]),_:1})])],!0)]),e(),r("div",ee,[m(n.$slots,"content-info",{},()=>[r("div",te,[i(I,{width:"280"},{content:t(()=>[r("p",null,[e(_(a(s)("common.product.name"))+" ",1),r("b",null,_(a(o)("KUMA_VERSION")),1),e(" on "),r("b",null,_(a(s)(`common.product.environment.${a(o)("KUMA_ENVIRONMENT")}`)),1),e(" ("+_(a(s)(`common.product.mode.${a(o)("KUMA_MODE")}`))+`)
                `,1)])]),default:t(()=>[i(f,{appearance:"tertiary"},{default:t(()=>[e(`
                Info
              `)]),_:1}),e()]),_:1})]),e(),r("p",ne,[e(_(a(s)("common.product.name"))+" ",1),r("b",null,_(a(o)("KUMA_VERSION")),1),e(" on "),r("b",null,_(a(s)(`common.product.environment.${a(o)("KUMA_ENVIRONMENT")}`)),1),e(" ("+_(a(s)(`common.product.mode.${a(o)("KUMA_MODE")}`))+`)
          `,1)]),e(),i(K,{"kpop-attributes":{placement:"bottomEnd"}},{items:t(()=>[i(w,{item:{to:a(s)("common.product.href.docs.index"),label:""},target:"_blank",rel:"noopener noreferrer"},{default:t(()=>[e(`
                Documentation
              `)]),_:1},8,["item"]),e(),i(w,{item:{to:a(s)("common.product.href.feedback"),label:""},target:"_blank",rel:"noopener noreferrer"},{default:t(()=>[e(`
                Feedback
              `)]),_:1},8,["item"]),e(),i(w,{item:{to:{name:"onboarding-welcome-view"},label:""}},{default:t(()=>[e(`
                Onboarding
              `)]),_:1})]),default:t(()=>[i(f,{appearance:"tertiary","icon-only":""},{default:t(()=>[i(a(T),{size:a(N)},null,8,["size"]),e(),oe]),_:1}),e()]),_:1}),e(),i(f,{to:{name:"diagnostics"},appearance:"tertiary","icon-only":"","data-testid":"nav-item-diagnostics"},{default:t(()=>[i(a(B),{size:a(N),"hide-title":""},null,8,["size"]),e(),ae]),_:1})],!0)])]),e(),r("div",se,[n.$slots.navigation?(p(),E("nav",ie,[r("ul",null,[m(n.$slots,"navigation",{},void 0,!0)])])):g("",!0),e(),r("div",re,[r("div",ce,[m(n.$slots,"notifications",{},void 0,!0)]),e(),m(n.$slots,"notifications",{},()=>[a(u)("use state")?g("",!0):(p(),d(v,{key:0,class:"mb-4",appearance:"warning"},{alertMessage:t(()=>[r("ul",null,[r("li",{"data-testid":"warning-GLOBAL_STORE_TYPE_MEMORY",innerHTML:a(s)("common.warnings.GLOBAL_STORE_TYPE_MEMORY")},null,8,le)])]),_:1}))],!0),e(),m(n.$slots,"default",{},void 0,!0)])])])}}}),de=M(pe,[["__scopeId","data-v-1ccdf3b3"]]),_e=h({__name:"MeshNavigator",setup(c){return(o,u)=>{const s=l("RouterLink");return p(),d(k,{"data-testid":"meshes-navigator"},{default:t(()=>[i(s,{class:$({"is-active":[o.$route.name].concat(o.$route.matched.map(n=>n.name)).some(n=>n==="mesh-index-view")}),to:{name:"mesh-list-view"}},{default:t(()=>[e(`
      Meshes
    `)]),_:1},8,["class"])]),_:1})}}}),ue=h({__name:"ZoneEgressNavigator",setup(c){return(o,u)=>{const s=l("RouterLink");return p(),d(k,{"data-testid":"zone-egresses-navigator"},{default:t(()=>[i(s,{class:$({"is-active":[o.$route.name].concat(o.$route.matched.map(n=>n.name)).some(n=>n==="zone-egress-list-view")}),to:{name:"zone-egress-list-view"}},{default:t(()=>[e(`
      Zone Egresses
    `)]),_:1},8,["class"])]),_:1})}}}),me=h({__name:"ZoneNavigator",setup(c){return(o,u)=>{const s=l("RouterLink");return p(),d(k,{"data-testid":"zones-navigator"},{default:t(()=>[i(s,{class:$({"is-active":[o.$route.name].concat(o.$route.matched.map(n=>n.name)).some(n=>n==="zone-index-view")}),to:{name:"zone-cp-list-view"}},{default:t(()=>[e(`
      Zones
    `)]),_:1},8,["class"])]),_:1})}}}),he=["alt"],fe=h({__name:"App",setup(c){return(o,u)=>{const s=l("RouterView"),n=l("AppView"),y=l("RouteView"),b=l("DataSource");return p(),d(b,{src:"/control-plane/addresses"},{default:t(({data:f})=>[typeof f<"u"?(p(),d(y,{key:0,name:"app",attrs:{class:"kuma-ready"},"data-testid-root":"mesh-app"},{default:t(({t:v,can:S})=>[i(de,{class:"kuma-application"},{home:t(()=>[r("img",{class:"logo",src:H,alt:`${v("common.product.name")} Logo`,"data-testid":"logo"},null,8,he)]),navigation:t(()=>[i(F),e(),S("use zones")?(p(),d(me,{key:0})):(p(),d(ue,{key:1})),e(),i(_e)]),default:t(()=>[e(),e(),i(n,null,{default:t(()=>[i(s)]),_:1})]),_:2},1024)]),_:1})):g("",!0)]),_:1})}}}),ge=M(fe,[["__scopeId","data-v-f821200e"]]);export{ge as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
